﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/SalesOneWeb.Master" CodeBehind="AssignPermissions.aspx.cs" Inherits="IronOne.SalesOne.SalesOneWeb.UserManagement.AssignPermissions" %>

<%@ Register src="../UserControls/UCGrid.ascx" tagname="UCGrid" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <link href="../StyleSheets/salesOne_txtstyle.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
       
        .style2
        {
            width: 105%;
        }
        .style4
        {
            width: 29px;
        }
        .style7
        {
            width: 60px;
        }
        .detailstable
        {
            width: 420px;
        }
       
        .style8
        {
        }
        .style9
        {
            margin: 0px;
            padding: 0px;
            height: 8px;
            }
       
        .style10
        {
            width: 20px;
        }
        .style11
        {
            width: 50px;
        }
       
        .style12
        {
            width: 121px;
        }
       
    </style>
     <script language="javascript" type="text/javascript">

        window.onload = function() {

            var msg = document.getElementById('ctl00_MasterMsg');
            if (msg && msg.innerHTML != '')
                showMessageBlock();
        }
        </script>
    </asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
    
        <table class="detailstable">
            <tr>
                <td class="style8"  >
                    Select User Role</td>
                <td>
                    <asp:DropDownList ID="ddlUserRole" runat="server" 
                        onselectedindexchanged="ddlUserRole_SelectedIndexChanged" 
                        AutoPostBack="True" CssClass="ddl">
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td  colspan="2">
                    </td>
            </tr>
            <tr>
                <td colspan="2"  >
                    <asp:GridView ID="grdTasks" runat="server" BackColor="#907977" BorderColor="#907977"
                BorderWidth="1px" CellPadding="3" GridLines="Vertical" 
                Width="376px" OnRowDataBound="grdUsers_RowDataBound" 
                        onrowcreated="grdUsers_RowCreated" OnDataBound="grdUsers_OnDataBound" 
                        BorderStyle="solid">
                        <RowStyle BackColor="#f6f6f6" ForeColor="#4A3C8C" BorderColor="#907977" />
                <Columns>
                <asp:TemplateField HeaderText="Enquiry">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkEnquiry" runat="server" CssClass="chbox"
                                />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Create">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkCreate" runat="server" CssClass="chbox"
                                />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="Update">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkUpdate" runat="server" CssClass="chbox"
                                />
                        </ItemTemplate>
                    </asp:TemplateField>
                     <asp:TemplateField HeaderText="Delete">
                        <ItemTemplate>
                            <asp:CheckBox ID="chkDelete" runat="server" CssClass="chbox"
                                />
                        </ItemTemplate>
                    </asp:TemplateField>
                     
                     
                </Columns>
                <FooterStyle BackColor="#B5C7DE" ForeColor="#4A3C8C" />
                <PagerStyle BackColor="#E7E7FF" ForeColor="#4A3C8C" HorizontalAlign="Right" />
                <SelectedRowStyle BackColor="#738A9C" ForeColor="#F7F7F7" Font-Bold="True" />
                <HeaderStyle BackColor="#ae5044" Font-Bold="True" ForeColor="#F7F7F7" />
                <AlternatingRowStyle BackColor="#cacbcf" />
            </asp:GridView>
                    
                </td>
            </tr>
           
            <tr>
                <td colspan="2" class="pix8"  >
                    </td>
            </tr>
            <tr>
                <td class="style8" colspan="2"  >
                    <table cellpadding="0" cellspacing="0" class="style1">
                        <tr>
                            <td class="style12">
                    <asp:Button ID="btnSave" runat="server" onclick="btnSave_Click" 
                        Text="Save Permissions" Visible="False" CssClass="btn4" Height="23px" 
                        Width="117px"/>
                            </td>
                            <td>
                    <asp:Button ID="btnCancel" runat="server" Text="Cancel" CssClass="btn" 
                                    onclick="btnCancel_Click" Width="76px" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td colspan="2">
                    &nbsp;
            <asp:Label ID="lblError" runat="server"></asp:Label>
                                        
                    </td>
            </tr>
        </table>
    
    </div>
</asp:Content>